﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;
using AccesoDatos.Objetos;
using AccesoDatos.Manejador;

namespace Autorizacion_facturas_caja.DiasInhabiles
{
    public partial class frmDiasInhabiles_Reporte : Form
    {
        objDiasInhabiles obj1 = new objDiasInhabiles();
        Manejador_Dias_Inhabiles MDI = new Manejador_Dias_Inhabiles();

        #region FUNCIONES
        public frmDiasInhabiles_Reporte(objDiasInhabiles obj)
        {
            InitializeComponent();
            obj1 = obj;
            DataTable datos = MDI.ConsultaDiasInhabiles(obj1.Fecha_Inicio, obj1.Fecha_Fin, obj1.Activa);
            Reporte_DiasInhabiles objRpt = new Reporte_DiasInhabiles();
            objRpt.SetDataSource(datos);
            crystalReportViewer1.ReportSource = objRpt;
            crystalReportViewer1.Refresh();
        }
        #endregion

        #region BOTONES
        #endregion

        #region  EVENTOS
        #endregion

    }
}
